//
//  CZCycleCell.m
//  packDemo
//
//  Created by apple on 16/6/20.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "CZCycleCell.h"
#import <UIImageView+WebCache.h>
@interface CZCycleCell()
/**
 *  轮播图片
 */
@property (nonatomic,strong) UIImageView *imageView;

@end


@implementation CZCycleCell
-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setUpUi];
    }
    
    return self;
}


-(void)setUpUi{
    self.imageView = [[UIImageView alloc]init];
    self.imageView.frame = self.contentView.frame;
    
    [self addSubview:self.imageView];
}

-(void)setCycle:(CZCycle *)cycle{
    _cycle = cycle;

    [self.imageView sd_setImageWithURL:[NSURL URLWithString:cycle.imgsrc]];
    
}

@end
